﻿      
     
      
Create proc [dbo].[danhmucMaSoThue_xoa]          
@MaSoThue varchar(25)          
as          
declare @dem as int          
select @dem=COUNT(*) from DM_MSThue where masothue=@MaSoThue       
if(@dem>0)          
begin          
      
delete from  DM_MSThue where masothue=@MaSoThue              
select ErrCode=1          
end          
else          
begin          
          
select ErrCode=0          
end     
    